package messangerTypes;

@SuppressWarnings("serial")
public class UserMessage extends MessageBase implements java.io.Serializable
{
	private User destination;
	private User source;
	private String message;
	
	public String getMessage()
	{
		return message;
	}

	public UserMessage (User source, User dest, String message)
	{
		super(MessageBase.MessageType.USER_MESSAGE);
		this.destination = dest;
		this.source = source;
		this.message = message;
	}

	@Override
	public String toString()
	{
		return "UserMessage [destination=" + destination + ", source=" + source
				+ ", message=" + message + "]";
	}

	public User getDestination()
	{
		return destination;
	}

	public User getSource()
	{
		return source;
	}
	
}
